
#include "S_10_Enhance_doChange.h"
#include "property_decoder.h"
#include "spec.h"

void P_10_16_RoomSize_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(10,16, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}

void P_10_1_FanPercent_doChange(int newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_integer(&thiz,newValue);
	
	if (send_property_changed(10,1, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}


void P_10_18_MaxfanSelect_doChange( bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_boolean(&thiz,newValue);
	
	if (send_property_changed(10,18, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
	
}

void P_10_3_Timer_doChange(const char * newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_string(&thiz,newValue);
	
	if (send_property_changed(10,3, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}

void P_10_19_RoomSelect_doChange( bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_boolean(&thiz,newValue);
	
	if (send_property_changed(10,19, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}

void P_10_4_SleepDiy_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_boolean(&thiz,newValue);
	
	if (send_property_changed(10,4, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}


void P_10_20_LikeDiy_doChange(bool newValue)
{
	property_value_t thiz;
    memset(&thiz,0,sizeof(thiz));

	property_value_new_boolean(&thiz,newValue);
	
	if (send_property_changed(10,20, &thiz) != MIIO_OK)
    {
       LOG_INFO("%s:send_property_changed failed!\n",__func__);
    }
    
}

